import React, { Component } from 'react'
import './PCAPPD.scss'
export default class PCAPPD extends Component {
  render() {
    return (
      <div className="PCAPPD">
        <div className="contentbox">
          <div className="box1 box">
            <div className="boxitem">
              <img
                src={require('./../../../../assets/Peisong/delivery-app-icon.png')}
                alt=""
              />
              <p className="p1">蜂鸟众包</p>
              <p className="p2">单多路少补贴高</p>
            </div>
            <div className="boxinfo">
              <div>
                <img
                  src={require('./../../../../assets/Peisong/ios-icon.png')}
                  alt=""
                  className="img1"
                />
                <img
                  src={require('./../../../../assets/Peisong/android-icon.png')}
                  alt=""
                  className="img2"
                />
              </div>
              <img
                src={require('./../../../../assets/Peisong/delivery-QRCode.png')}
                alt=""
                className="img3"
              />
              <p>扫描二维码下载蜂鸟众包</p>
            </div>
          </div>
          <div className="box2 box">
            <div className="boxitem">
              <img
                src={require('./../../../../assets/Peisong/business-app-icon.png')}
                alt=""
              />
              <p className="p1">蜂鸟跑腿</p>
              <p className="p2">同城即送，安全准时</p>
            </div>
            <div className="boxinfo">
              <div>
                <img
                  src={require('./../../../../assets/Peisong/ios-icon.png')}
                  alt=""
                  className="img1"
                />
                <img
                  src={require('./../../../../assets/Peisong/android-icon.png')}
                  alt=""
                  className="img2"
                />
              </div>
              <img
                src={require('./../../../../assets/Peisong/business-QRCord.png')}
                alt=""
                className="img3"
              />
              <p>扫描二维码下载蜂鸟跑腿</p>
            </div>
          </div>
        </div>
      </div>
    )
  }
  getchecked1 = () => {
    var str = this.props.match.path
    var arr = str.split('/')
    const path = arr.pop()
    // console.log(path)
    switch (path) {
      case 'PCMain':
        window.location.reload(true)
        break
      case 'PCS':
        localStorage.setItem('check', 2)
        break
      case 'PCP':
        localStorage.setItem('check', 3)
        break
      case 'PCPAW':
        localStorage.setItem('check', 4)
        break
      default:
        break
    }
  }
  componentDidMount() {
    window.scrollTo(0, 0)
    this.getchecked1()

    // this.forceUpdate()
    //获取地址信息
    // window.opener.location.href = window.opener.location.href
  }
}
